#ifndef SCREENSHOT_H
#define SCREENSHOT_H

#include <QWidget>

class QLabel;
class QSpinBox;
class QCheckBox;
class QPushButton;
class ScreenShot : public QWidget
{
    Q_OBJECT
public:
    explicit ScreenShot(QWidget *parent = nullptr);
    ~ScreenShot();

protected:
        void resizeEvent(QResizeEvent  *event) override;
signals:

private  slots:
        void newScreenshot();
        void saveScreenshot();
        void shootScreen();
        void updateCheckBox();

private:
void updateScreenshotLabel();
void init();
void uninit();

QPixmap  m_originalPixmap;

QLabel * m_pScreenshotLabel;
QSpinBox *m_pDelaySpinBox;
QCheckBox *m_pHideThisWindowCheckBox;
QPushButton *m_pNewScreenShotButton;
};

#endif // SCREENSHOT_H
